import Vue from 'vue'
import VueRouter from 'vue-router'

import UserCenterContainer from '../views/layouts/UserCenterContainer'
import MyCourses from '../views/pages/MyCourses.vue'
import PersonalInfo from '../views/pages/PersonalInfo.vue'
Vue.use(VueRouter)
let router = new VueRouter({
  routes: [
    {
      path: '/',
      component: UserCenterContainer,
      children: [
        /**
         * 我的团队
         */
        {path: '', redirect: 'my-courses'},
        {
          path: 'my-courses',
          name: 'my-courses',
          component: MyCourses
        },
        {
          path: 'personal-info',
          name: 'personal-info',
          component: PersonalInfo
        },

      ]
    }
  ],
  linkActiveClass: 'active'
})


export default router
